package com.gombe.credit.app.weight.font;


import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.gombe.credit.lib.shapeview.view.GombeCreditTextView;

/**
 * GombeCredit
 *
 * @Author wwdeng
 * @CreateTime: 2024/12/26 21:32
 * @Annotation：
 */
public class LexendMediumTextView extends GombeCreditTextView {
    public LexendMediumTextView(Context context) {
        super(context);
    }

    public LexendMediumTextView(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public LexendMediumTextView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public void setTypeface(@Nullable Typeface tf) {
        super.setTypeface(tf);
    }

    @Override
    public void setTypeface(@Nullable Typeface tf, int style) {
        super.setTypeface(Typeface.createFromAsset(getContext().getAssets(),"fonts/Lexend-Medium.ttf"));
    }
}
